 <?php
 /**
 * @package Spider Contacts
 * @author Web-Dorado
 * @copyright (C) 2012 Web-Dorado. All rights reserved.
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 **/
defined('_JEXEC') or die('Restricted access');
class TOOLBAR_spidercontacts
  {
	  
	  
   function _VIEW($controller)
   {	JToolBarHelper::title(JText::_('Spider Contacts View Message').'<a href="http://www.web-dorado.com/files/fromSpiderContactsJoomla.php" target="_blank" style=""><img style="float:right;padding-right: 15px;" src="components/com_spidercontacts/images/buyme.png" border="0" alt="http://web-dorado.com/files/fromSpiderContactsJoomla.php" >
</a>','generic.png');
	    JToolBarHelper::cancel();
	   }
	
	function _NEW($controller)
      {
             
                JToolBarHelper::save();
                JToolBarHelper::apply();
                JToolBarHelper::cancel();
              
       }
      
    function _DEFAULT($controller)
      {
		  JToolBarHelper::title(JText::_('Spider Contacts Manager').'<a href="http://www.web-dorado.com/files/fromSpiderContactsJoomla.php" target="_blank" style=""><img style="float:right;padding-right: 15px;" src="components/com_spidercontacts/images/buyme.png" border="0" alt="http://web-dorado.com/files/fromSpiderContactsJoomla.php" >
</a>');
		  
        if ($controller == 'options')
          {
			JToolBarHelper::title(JText::_('Spider Contacts Options').'<a href="http://www.web-dorado.com/files/fromSpiderContactsJoomla.php" target="_blank" style=""><img style="float:right;padding-right: 15px;" src="components/com_spidercontacts/images/buyme.png" border="0" alt="http://web-dorado.com/files/fromSpiderContactsJoomla.php" >
</a>','generic.png');
			if (isset($_GET['op_type']))
			{
            JToolBarHelper::save();
            JToolBarHelper::apply();
            JToolBarHelper::cancel();
			}
          }
		  
		  if ($controller=='messages')
				{
				JToolBarHelper::title(JText::_('Spider Contacts Messages').'<a href="http://www.web-dorado.com/files/fromSpiderContactsJoomla.php" target="_blank" style=""><img style="float:right;padding-right: 15px;" src="components/com_spidercontacts/images/buyme.png" border="0" alt="http://web-dorado.com/files/fromSpiderContactsJoomla.php" >
</a>','generic.png');
				JToolBarHelper::deleteList();
				JToolBarHelper::custom('markReaden', 'apply.png', 'apply.png', 'Mark as Readen', true, true);
				JToolBarHelper::custom('markUnreaden', 'cancel.png', 'cancel.png', 'Mark as Unreaden', true, true);
				
				
				}
		  
       if ($controller=='contacts')
	
		
          {
            JToolBarHelper::title(JText::_('Spider Contacts Contacts').'<a href="http://www.web-dorado.com/files/fromSpiderContactsJoomla.php" target="_blank" style=""><img style="float:right;padding-right: 15px;" src="components/com_spidercontacts/images/buyme.png" border="0" alt="http://web-dorado.com/files/fromSpiderContactsJoomla.php" >
</a>', 'generic.png');
            JToolBarHelper::publishList();
            JToolBarHelper::unpublishList();
            JToolBarHelper::editList();
            JToolBarHelper::deleteList();
            JToolBarHelper::addNew();
			
          }
		  if ($controller=='category')
	
		
          {
            JToolBarHelper::title(JText::_('Spider Contacts Categories ').'<a href="http://www.web-dorado.com/files/fromSpiderContactsJoomla.php" target="_blank" style=""><img style="float:right;padding-right: 15px;" src="components/com_spidercontacts/images/buyme.png" border="0" alt="http://web-dorado.com/files/fromSpiderContactsJoomla.php" >
</a>', 'generic.png');
            JToolBarHelper::publishList();
            JToolBarHelper::unpublishList();
            JToolBarHelper::editList();
            JToolBarHelper::deleteList();
            JToolBarHelper::addNew();
          }
		
		
		}
     
	 

  }
?>